package com.lb.trac.pojo.condition;

import java.util.HashMap;
import java.util.Map;

import org.hibernate.criterion.Criterion;
import org.hibernate.criterion.Restrictions;

import com.lb.trac.util.SQLCondition;

public class FindAllegatiByMD5AndTemporaneo implements SQLCondition {

	private String md5;

	public FindAllegatiByMD5AndTemporaneo(String md5) {
		super();
		this.md5 = md5;
	}
	public Criterion create(Object... params) {
		Map<String, Object> propertyNameValues=new HashMap<String, Object>();
		propertyNameValues.put("md5", md5);
		propertyNameValues.put("temporaneo", new Boolean(true));
		return  Restrictions.allEq(propertyNameValues);
	}


}
